package Loop;

/**
 * Enjoy programming!!!
 * Time: 2021/10/27 -  9:35
 */
public class Summation01 {
    public static void main(String[] args){
        int h = 1;
        int[] a = new int[100];

        for (int i = 0; i < 100; i++){
            a[0] = 1;
            if (i > 0){
                a[i] = a[i - 1] + i + 1;
                h += a[i];
            }
        }
        System.out.println(h);
    }
}
